package com.systemic.mapper;

import com.systemic.pojo.SubjectDynamic;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName: SubjectDynamicMapper
 * @Description:
 * @Author:
 * @CreateTime: 2024-01-16 12:41
 * @Version:
 **/
@Mapper
public interface SubjectDynamicMapper extends BaseMapper<SubjectDynamic> {

    /**
     * 根据话题id删除
     * @param sid
     * @return
     */
    int deleteById(@Param("sid") Integer sid);

    /**
     * 根据话题id查询关联的动态
     * @param sid
     * @param status
     * @param offset
     * @param pageSize
     * @return
     */
    List<SubjectDynamic> selectListPageById(@Param("sid") Integer sid, @Param("status") Integer status,
                                            @Param("offset") Integer offset, @Param("pageSize") Integer pageSize);
}
